//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_operations.js中编写
//************************************************
export default function () {
	return {
		editFormFields: { Remark: '',  Voucher_sub: '', Site: '', Operations_date: '' },
		editFormOptions: [
			{ title: 'ID', field: 'Operations', disabled: true, hidden: true },
			{ title: '单据编码', field: 'Voucher_sub', disabled: true, type: 'text' },
			{ key: '运维站点', data: [], title: '站点名称', required: true, field: 'Site', type: 'select' },
			{ title: '运维日期', required: true, field: 'Operations_date', type: 'date' },
			{ title: '备注', field: 'Remark', type: 'textarea' },
			// { title: '经度', field: 'Longitude', type: 'decimal', disabled: true },
			// { title: '纬度', field: 'Latitude', type: 'decimal', disabled: true }
		],
		searchFormFields: { Voucher_sub: '', Site: '', AuditStatus: '', Creator: '', CreateDate: '', Operations_date: ''},
		searchFormOptions: [
			{ title: '创建人员', field: 'Creator' },
			// { title: '经度', field: 'Longitude', type: 'decimal' },
			// { title: '纬度', field: 'Latitude', type: 'decimal' },
			{ title: '创建时间', field: 'CreateDate', type: 'datetime' },
			{ type: 'group' },
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ key: '运维站点', data: [], title: '站点名称', field: 'Site', type: 'select' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' },
			{ title: '运维日期', field: 'Operations_date', type: 'date' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true, readonly: true },
			{ field: 'Site', title: '站点名称', type: 'string', bind: { key: '运维站点', data: [] }, readonly: true },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'Creator', title: '创建人员', type: 'string' },
			{ field: 'CreateDate', title: '创建时间', type: 'datetime' },
			{ field: 'Operations_date', title: '运维日期', type: 'datetime' },
			// { field: 'Longitude', title: '经度', type: 'decimal' },
			// { field: 'Latitude', title: '纬度', type: 'decimal' }
		],
		table: {
			key: 'Operations',
			footer: 'Foots',
			cnName: '运维服务单',
			name: 'q_operations',
			url: '/q_operations/',
			sortName: 'Voucher_sub'
		}
	};
}
